<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>便利店销售管理系统登录页面</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <script src="./js/jQuery.js"></script>
    <script src="./js/index.js"></script>
    <script src="./js/popper.js"></script>
    <link rel="stylesheet" href="./css/bootstrap/css/bootstrap.css">
    <script src="./css/bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="./css/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="./css/index.css">

</head>
<body>
<div class="section__table table-responsive">
    <table class="table table-striped">
        <tr>
            <th>ID</th>
            <th>用户编号</th>
            <th>用户名</th>
            <th>性别</th>
            <th>联系方式</th>
            <th>操作</th>
        </tr>
        <c:forEach var="userTable" items="${userTableList}">
            <tr>
                <td>${userTable.id}</td>
                <td>${userTable.uid}</td>
                <td>${userTable.name}</td>
                <td>${userTable.sex}</td>
                <td>${userTable.phone}</td>
                <td>
                    <a href="deleteUserById?id=${userTable.id}">
                        <button class="btn btn-danger">
                            <i class="fa fa-close"></i>
                            &nbsp;删除
                        </button>
                    </a>
                    <a href="toUpdateUser?id=${userTable.id}">
                        <button class="btn btn-info">
                            <i class="fa-pencil-square-o fa"></i>
                            &nbsp;修改
                        </button>
                    </a>
                </td>
            </tr>
        </c:forEach>

    </table>
</div>
<div class="table__btn-group">
    <a href="NewUser.jsp">
        <button class="btn btn-outline-success"><i class="fa fa-plus"></i>&nbsp;新增用户</button>
    </a>
    <a href="blank.jsp">
        <button class="btn btn-outline-info"><i class="fa fa-arrow-left"></i>&nbsp;返回主页面</button>
    </a>
</div>
</body>
</html>